//
//  PhotosView.h
//  Malena
//
//  Created by Wang Shuguang on 12-11-5.
//  Copyright (c) 2012年 Dawn. All rights reserved.
//

#import <UIKit/UIKit.h>
@protocol PhotosViewDelegate;
@interface PhotosView : UIView<UITableViewDataSource,UITableViewDelegate>{
@private
    UILabel *categoryLabel;
    UITableView *tableView;
    id delegate;
    NSInteger lastIndex;
    NSInteger currentIndex;
}
@property (nonatomic,retain) NSArray *imageArray;
@property (nonatomic,retain) NSString *category;
@property (nonatomic,assign) CGSize screenSize;
@property (nonatomic,assign) BOOL down;
@property (nonatomic,assign) id<PhotosViewDelegate> delegate;

- (void) reloadDataWith:(NSArray *)files;

- (void) scrollToIndex:(id)obj;
@end

@protocol PhotosViewDelegate
@optional
- (void) photosView:(PhotosView *)photosView didSelectedAtIndex:(NSInteger)index;
@end
